package com.yx.modules.api.service.impl;

import com.yx.modules.api.dao.TbGradeRecordDao;
import com.yx.modules.api.entity.TbGradeRecord;
import com.yx.modules.api.service.TbGradeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;





@Service
public class TbGradeRecordServiceImpl implements TbGradeRecordService {
	@Autowired
	private TbGradeRecordDao gradeRecordDao;
	
	@Override
	public TbGradeRecord queryObject(Integer id){
		return gradeRecordDao.queryObject(id);
	}
	
	@Override
	public List<TbGradeRecord> queryList(Map<String, Object> map){
		return gradeRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return gradeRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(TbGradeRecord gradeRecord){
		gradeRecordDao.save(gradeRecord);
	}
	
	@Override
	public void update(TbGradeRecord gradeRecord){
		gradeRecordDao.update(gradeRecord);
	}
	
	@Override
	public void delete(Integer id){
		gradeRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		gradeRecordDao.deleteBatch(ids);
	}

	@Override
	public TbGradeRecord findByUserIdAndBookId(Integer userId, Integer id) {
		return gradeRecordDao.findByUserIdAndBookId(userId,id);
	}


}
